package view

import "time"

type XiaoqiangOrderViewStruct struct {
	OrderId                            int       `json:"order_id" gorm:"type:int(11); NOT NULL; "`
	OrderStaticParkCode                string    `json:"order_static_park_code" gorm:"type:varchar(255); COMMENT:'静态停车场编号'"`
	OrderParkCode                      string    `json:"order_park_code" gorm:"type:varchar(20); COMMENT:'停车场编号'"`
	OrderCarNumber                     string    `json:"order_car_number" gorm:"type:varchar(20); COMMENT:'车牌号'"`
	OrderCarNoColor                    int       `json:"order_car_no_color" gorm:"type:tinyint(1); COMMENT:'车牌颜色 1-蓝牌 3-黄牌 6-绿牌 7-白牌 8-黑牌'"`
	OrderCarType                       int       `json:"order_car_type" gorm:"type:tinyint(1); COMMENT:'车型 1: 小型车 2: 中型车 3: 大型车 4: 其 他'"`
	OrderOrderNo                       string    `json:"order_order_no" gorm:"type:varchar(255); COMMENT:'系统单号'"`
	OrderStatus                        int       `json:"order_status" gorm:"type:tinyint(1); COMMENT:'订单状态 0 预约中, 1在场地内  2已结束'"`
	OrderOrderType                     int       `json:"order_order_type" gorm:"type:tinyint(1); ; COMMENT:'1:小强停车 2:泊安飞'"`
	OrderInTime                        time.Time `json:"order_in_time" gorm:"type:datetime; COMMENT:'进场时间'"`
	OrderOutTime                       time.Time `json:"order_out_time" gorm:"type:datetime; COMMENT:'出场时间'"`
	OrderCreatedAt                     time.Time `json:"order_created_at" gorm:"type:datetime"`
	OrderUpdatedAt                     time.Time `json:"order_updated_at" gorm:"type:datetime"`
	OrderXiaoqiangId                   int       `json:"order_xiaoqiang_id" gorm:"type:int(11); NOT NULL;"`
	OrderXiaoqiangMobile               string    `json:"order_xiaoqiang_mobile" gorm:"type:varchar(255); COMMENT:'手机号'"`
	OrderXiaoqiangOrderNo              string    `json:"order_xiaoqiang_order_no" gorm:"type:varchar(255); COMMENT:'系统单号'"`
	OrderXiaoqiangXqOrderNo            int       `json:"order_xiaoqiang_xq_order_no" gorm:"type:int(11); COMMENT:'小强单号'"`
	OrderXiaoqiangReservationStartTime time.Time `json:"order_xiaoqiang_reservation_start_time" gorm:"type:datetime; COMMENT:'预约开始时间'"`
	OrderXiaoqiangReservationEndTime   time.Time `json:"order_xiaoqiang_reservation_end_time" gorm:"type:datetime; COMMENT:'预约结束时间'"`
	OrderXiaoqiangStatus               int       `json:"order_xiaoqiang_status" gorm:"type:tinyint(1); COMMENT:'订单状态 0 预约中, 1在场地内  2已结束'"`
	OrderXiaoqiangAbnormal             int       `json:"order_xiaoqiang_abnormal" gorm:"type:tinyint(1);  COMMENT:'订单状态 0正常 1异常'"`
	OrderXiaoqiangCreatedAt            time.Time `json:"order_xiaoqiang_created_at" gorm:"type:datetime"`
	OrderXiaoqiangUpdatedAt            time.Time `json:"order_xiaoqiang_updated_at" gorm:"type:datetime"`
	ParkingLotId                       int       `json:"parking_lot_id" gorm:"type:int(10) NOT NULL; "`
	ParkingLotMuchId                   string    `json:"parking_lot_much_id" gorm:"type:varchar(255); COMMENT:'停车场商户信息'"`
	ParkingLotParkCode                 string    `json:"parking_lot_park_code" gorm:"type:varchar(20)"`
	ParkingLotName                     string    `json:"parking_lot_name" gorm:"type:varchar(100); COMMENT:'名称'"`
	ParkingLotAddress                  string    `json:"parking_lot_address" gorm:"type:varchar(100); COMMENT:'地址'"`
	ParkingLotParkingNumber            int       `json:"parking_lot_parking_number" gorm:"type:int(10); COMMENT:'停车位数量'"`
	ParkingLotStopType                 string    `json:"parking_lot_stop_type" gorm:"type:varchar(100); COMMENT:'停车类型'"`
	ParkingLotLongitude                float32   `json:"parking_lot_longitude" gorm:"type:float; COMMENT:'经度'"`
	ParkingLotLatitude                 float32   `json:"parking_lot_latitude" gorm:"type:float; COMMENT:'纬度'"`
	ParkingLotState                    int       `json:"parking_lot_state" gorm:"type:smallint(1); "`
	ParkingLotSort                     int       `json:"parking_lot_sort" gorm:"type:smallint(3); "`
	ParkingLotClicks                   int       `json:"parking_lot_clicks" gorm:"type:int(10); "`
	ParkingLotRegionCode               string    `json:"parking_lot_region_code" gorm:"type:varchar(50)"`
	ParkingLotRegionName               string    `json:"parking_lot_region_name" gorm:"type:varchar(50)"`
	ParkingLotParkCity                 string    `json:"parking_lot_park_city" gorm:"type:varchar(50)"`
	ParkingLotPType                    int       `json:"parking_lot_p_type" gorm:"type:int(11)"`
	ParkingLotMTime                    string    `json:"parking_lot_m_time" gorm:"type:varchar(32)"`
	ParkingLotFreeMinutes              int       `json:"parking_lot_free_minutes" gorm:"type:int(11);COMMENT:'免费停车时长'"`
	ParkingLotCreatedAt                time.Time `json:"parking_lot_created_at" gorm:"type:datetime"`
	ParkingLotUpdatedAt                time.Time `json:"parking_lot_updated_at" gorm:"type:datetime"`
}

func (c *XiaoqiangOrderViewStruct) TableName() string {
	return "xiaoqiang_order_view"
}
